package com.test2015.ui.util;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class CMDUtil {

	
	public static void main(String[] args) throws IOException, InterruptedException {
		
		Runtime runtime = Runtime.getRuntime();
		
		Process exec = runtime.exec("ping 127.0.0.1");
//		InputStream inputStream = exec.getInputStream();
//		BufferedReader br = new BufferedReader(new InputStreamReader(inputStream));
//		String line = null;
//		while((line = br.readLine()) != null){
//			System.out.println(line);
//		}
		
		
		exec.waitFor();
	}
}
